<link rel="stylesheet" type="text/css" href="/bower_components/simditor/styles/simditor.css" />
<script type="text/javascript" src="/bower_components/simple-module/lib/module.js"></script>
<script type="text/javascript" src="/bower_components/simple-hotkeys/lib/hotkeys.js"></script>
<script type="text/javascript" src="/bower_components/simple-uploader/lib/uploader.js"></script>
<script type="text/javascript" src="/bower_components/simditor/lib/simditor.js"></script>
<script type="text/javascript" src="/js/editor.js"></script>
<link rel="stylesheet" type="text/css" href="/css/editor.css" />
<link rel="stylesheet" type="text/css" href="/Wlui/static/css/">


<div class="container-fluid editor">
    <div class="row">
        <div class="navbar navbar-default">
            <div class="navbar-header">
                <h1>投稿区</h1>
            </div>
            <div class="nav navbar-nav navbar-left">
                <a class="btn btn-back" href="/">主页</a>
            </div>
        </div>
        <div class="col-md-2 sidebar-box">
            <div class="sidebar">
                <div class="btn btn-primary btn-add">添加编辑新闻</div>
                <ul>
                    {{#each comments}}
                    <li>
                        <a href="/editor/{{_id}}">  {{title}}  </a>
                        <button type="button" class="btn-del close"><span >&times;</span></button>
                    </li>
                    {{/each}}
                </ul>
            </div>
        </div>
        <div class="col-md-offset-2 col-md-10 main-box">
            {{#if comment}}
            <form>
                <input type="hidden" value={{comment._id}} id="comment-id"></input>
                <input name="title" type="text" value={{comment.title}} id="comment-title" class="comment-title form-control"></input>             
                <textarea id="editor" placeholder="请输入文章内容">  {{comment.content}}</textarea>
                <button class="btn btn-primary btn-save" id="btn-save">保存</button>
            </form>
            {{/if}}
        </div>
    </div>
</div>